import request from '@/utils/request'

// 查询周转公寓管理列表
export function listTemporaryapartment(query) {
  return request({
    url: '/czj/temporaryapartment/list',
    method: 'get',
    params: query
  })
}

// 查询周转公寓管理详细
export function getTemporaryapartment(apartmentid) {
  return request({
    url: '/czj/temporaryapartment/' + apartmentid,
    method: 'get'
  })
}

// 新增周转公寓管理
export function addTemporaryapartment(data) {
  return request({
    url: '/czj/temporaryapartment',
    method: 'post',
    data: data
  })
}

// 修改周转公寓管理
export function updateTemporaryapartment(data) {
  return request({
    url: '/czj/temporaryapartment',
    method: 'put',
    data: data
  })
}

// 删除周转公寓管理
export function delTemporaryapartment(apartmentid) {
  return request({
    url: '/czj/temporaryapartment/' + apartmentid,
    method: 'delete'
  })
}
